package com.dr.cmdb.core.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * @ProjectName: cmdb
 * @Package: com.dr.cmdb.application.config
 * @Description: 自定义参数
 * @Author: duanrui
 * @CreateDate: 2021/3/18 9:49
 * @Version: 1.0
 * <p>
 * Copyright: Copyright (c) 2021
 */
@Data
@Configuration
public class CustomizeConfig {

    /**
     * mongo中的collect_name,即表名
     */
    @Value(value = "${customize.mongo.collect.name:ci_items}")
    private String ciCollectName;

    /**
     * mongo中区分具体配置项的字段，过滤配置项的类型时用此字段
     *
     */
    @Value(value = "${customize.mongo.collect.table.name:tableName}")
    private String ciTableName;

    @Value(value = "${swagger.base-package:com.dr.cmdb.core.controller}")
    private String basePackage;

    @Value(value = "${swagger.enabled:true}")
    private Boolean swaggerEnable;
}
